import request from '@/api/request'

export function newsList(kv) {
    return request({
        url: '/admin/xy/news/list',
        method: 'get',
        kv
    })
}

export function newsDel(kv) {
    return request({
        url: '/admin/xy/news/del',
        method: 'get',
        kv
    })
}

export function newsSave(kv) {
    return request({
        url: '/admin/xy/news/save',
        method: 'post',
        kv
    })
}

export function newsUpdate(kv) {
    return request({
        url: '/admin/xy/news/update',
        method: 'post',
        kv
    })
}

export function newsDetail(kv) {
    return request({
        url: '/admin/xy/news/detail',
        method: 'get',
        kv
    })
}